package com.hyh.admin.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyh.ad.common.core.domain.model.SysRole;
import com.hyh.ad.common.core.domain.model.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 查询用户角色
     * @param id
     * @return List<SysRole>
     */
    List<SysRole> selectHasRoles(Long id);
}
